import { request } from "@/utils/http";
import {CategoryDataList} from "@/api/product/model/categoryType"


export default{
// GET  /admin/product/getCategory1
// getCategory1
getCategory1(){
   return request.get<any,CategoryDataList>("/admin/product/getCategory1")
},
// GET /admin/product/getCategory2/{category1Id}
// getCategory2
getCategory2(category1Id:number){
    return request.get<any,CategoryDataList>(`/admin/product/getCategory2/${category1Id}`)
 },
// GET /admin/product/getCategory3/{category2Id}
// getCategory3
getCategory3(category2Id:number){
    return request.get<any,CategoryDataList>(`/admin/product/getCategory3/${category2Id}`)
 }
}


